package am.fp.events
{                                    
  import flash.events.Event;
  
  public class SidePaneEvent extends Event
  {  
    public static const TOGGLE: String = "toggleSidePane";
    public static const CHANGE: String = "sidePaneChange";
    
    public static const PANE_TILES : String = "tiles";
    public static const PANE_PRINT : String = "print";
    public static const PANE_SEARCH: String = "search";
    
    private var m_paneId: String;
    private var m_visible: Boolean;
    public function get paneId() : String  { return m_paneId;  }
    public function get visible(): Boolean { return m_visible; }
    
    public function SidePaneEvent(type: String, paneId: String, visible: Boolean = false)
    {
      m_paneId = paneId;
      m_visible = visible;
      super(type, false, false);
    }
  }
}
